<template>
  <div class="c_policy_declare_detail">
    <!-- banner -->
    <div class="banner">
      <img src="../../assets/images/banner.png" alt />
    </div>
    <div class="box">
      <div class="location">
        <router-link to="/policy">{{$t('common.nav.policy')}}</router-link>
        <span class="sp">></span>
        <router-link to="/c_policy_list?type=policyDeclare">{{$t('common.leftNav.policy')}}</router-link>
        <!-- <span v-if="tabStatus == 'match'">{{$t('common.policy.match')}}</span> -->
        <span class="sp">></span>
        {{$t('news.detail')}}
      </div>

      <div class="box-content white" v-if="con.title.length>0">
          <h2>{{con.title}}<el-tag>{{con.applyStatusTxt}}</el-tag></h2>
          <p class="p1">
              <span>政策申报</span>
              <span>发布时间：{{con.createTime}}</span>
          </p>
          <p class="p2">
            <span>源政策：</span>
            <a href="javascript:void(0)">{{con.policyArticles.title}}</a>
          </p>
          <p class="p3">
            <span>申报主体：</span>
            {{con.subjectTypeTxt}}
          </p>

          <p class="p4">
            <span>申报时间：</span>
            {{con.beginTime}}   至   {{con.endTime}}
            <span>（注：超过申报时间将不允许提交申报材料）</span>
          </p>
          <h3>
              {{$t('news.baomCon')}}：
          </h3>
          <div class="p5" v-html="con.briefContent"></div>
          <h2>申报填写</h2>
          <div class="re">
            <!-- rzstatus 1-未认证，2-认证审核中，3-已认证,4-认证为未通过 -->
            <!-- applyStatus  0 -未开始， 1-进行中，2 已截止   -->
            <!-- declareStatus    -1暂存，0已提交，1,审核通过，2审核打回  (null、-1和2的情况可更改) -->
            <div class="tipBoxs" @click="tipBoxs" v-if="userInfo.type != 1 || con.rzstatus !=3 || con.applyStatus !=1 || (con.declareStatus != -1  && con.declareStatus != 2 && con.declareStatus)"></div>
            
            <el-form ref="" :model="con" label-width="80px">
              <el-row>
                <el-col :span="12">
                  <el-form-item label="申报企业">
                    <el-input v-model="con.applyName" placeholder="请填入申报企业名称"></el-input>
                  </el-form-item>
                </el-col>
                <el-col :span="12">
                  <el-form-item label="申报人数">
                    <el-input v-model="con.applyNum" placeholder="请填入申报人数"></el-input>
                  </el-form-item>
                </el-col>
              </el-row>
              <dl class="zc-dl" v-if="con.applyMaterialList">
                <dt>企业材料</dt>
                <dd v-for="(item, index) in con.applyMaterialList" :key="index">
                  <el-row :gutter="20" class="flex1">
                    <el-col :span="11">
                      <span>{{item.name}}</span>
                    </el-col>
                    <el-col :span="10">
                      <div @click="fileUploadBox(index)" class="flex-lect">
                        <el-upload
                          class="honor-upload"
                          action=""
                          :show-file-list="false"
                          :before-upload="fileUpload"
                        >
                          <a href="javascript:void(0)">材料上传</a>
                        </el-upload>
                        <div class="mle10" v-if="item.userUploadAttachment && item.userUploadAttachment.name">
                          {{item.userUploadAttachment.name}}
                          <span class="red0 mle10 cur" @click="delQY(index)">删除</span>
                        </div>
                      </div>
                    </el-col>
                    <el-col :span="3" class="tr" v-if="item.attachment && item.attachment.path">
                      <a :href="imgUrl+item.attachment.path" download="" class="red1 undline" v-if="item.attachment.path">模板下载</a>
                    </el-col>
                  </el-row>
                </dd>
              </dl>
              <p class="tips">
                注：企业需按照模板要求汇总人员信息上报提交
              </p>
              <dl class="mt30 zc-dl">
                <dt class="flex-bect">
                  <span>人才信息</span>
                  <a href="javascript:void(0)" class="red1 b" @click="addYg()" v-if="con.declareStatus != 0 || !con.declareStatus">+添加人员</a>
                </dt>
                <dd v-for="(item, index) in con.companyApplyStuffList" :key="index">
                  <el-row :gutter="20" class="flex1 flex-bect">
                    <el-col :span="7">
                      <span v-if="!item.show && item.name.length>0">{{item.name}}</span>
                      <el-input v-else v-model="item.name" placeholder="输入人才姓名"></el-input>
                    </el-col>
                    <el-col :span="7">
                      <span v-if="!item.show && (item.sex.length>0 || item.sex > -1)">
                        <template v-if="item.sex == 0">{{$t('common.resume.male')}}</template>
                        <template v-if="item.sex == 1">{{$t('common.resume.female')}}</template>
                      </span>
                      <el-select v-else placeholder="选择性别" v-model="item.sex">
                        <el-option v-for="(n, idx) in sex" :key="idx" :label="n.name" :value="n.value"></el-option>
                      </el-select>
                    </el-col>
                    <el-col :span="7">
                      <span v-if="!item.show && !item.new"><a href="javascript:void(0)">{{item.materialCount}}份</a>材料</span>
                      <template v-else>
                        <div class="tl">
                          <a href="javascript:void(0)" @click="pups(index)">{{addYgFile.materialCount}}份</a>材料
                        </div>
                      </template>
                      
                    </el-col>
                    <el-col :span="3" class="tr" v-if="con.declareStatus !=0">
                      <template v-if="!item.show">
                        <span class="red1 cur" @click="change({type:0,index:index})">编辑</span>
                        <span class="cur h99 mle20" @click="change({type:1,index:index})">删除</span>
                      </template>
                      <template v-else>
                        <span class="red1 cur" @click="change({type:2,index:index})">保存</span>
                        <span class="cur h99 mle20" @click="change({type:3,index:index})">取消</span>
                      </template>
                    </el-col>
                  </el-row>
                  
                </dd>
              </dl>
            </el-form>
            <div class="flex-ct" v-if="con.declareStatus != 0 || con.declareStatus == 1">
              <span class="btn flex-ct bg1" @click="formSubmit(0)">确定提交</span>
              <span class="btn flex-ct" @click="formSubmit(-1)">暂存一下</span>
            </div>
          </div>
          
      </div>
      
    </div>

    <div id="zcFile_pup" class="flex-ct" v-if="pup">
      <div class="pup-box">
        <h3 class="b font16 flex-bect">信息上传 <span class="cur font30 h99" @click="pups(999)">×</span></h3>
        <div class="p1 h88">
          人才姓名：{{con.companyApplyStuffList[ygIndex].name}}
          <span class="mle20">性别： 
            <template v-if="con.companyApplyStuffList[ygIndex].sex == 0">{{$t('common.resume.male')}}</template>
            <template v-if="con.companyApplyStuffList[ygIndex].sex == 1">{{$t('common.resume.female')}}</template>
          </span>
        </div>
        <dl class="zc-dl">
          <dt class="flex-bect">
            <span>人才信息</span>
          </dt>
          <dd v-for="(item, index) in con.companyApplyStuffList[ygIndex].applyMaterialList" :key="index">
            <el-row :gutter="20" class="flex1 flex-bect">
              <el-col :span="6">
                <span>{{item.name}}</span>
              </el-col>
              <el-col :span="6">
                <span>{{item.requirement}}</span>
              </el-col>
              <!-- declareStatus -1暂存，0已提交，1,审核通过，2审核打回 -->
              <el-col :span="8" v-if="con.declareStatus != 0 || con.declareStatus == 1">
                <div @click="getYgFileIndex(index)" class="tl flex-lect">
                  <el-upload
                    class="honor-upload"
                    action=""
                    :show-file-list="false"
                    :before-upload="ygUpload"
                  >
                    <a href="javascript:void(0)">上传附件</a>
                  </el-upload>
                  <div class="mle10" v-if="item.userUploadAttachment && item.userUploadAttachment.name">
                    {{item.userUploadAttachment.name}}
                    <span class="red0 mle10 cur" @click="delGr(index)">删除</span>
                  </div>
                </div>
              </el-col>
              <el-col :span="4" class="tr">
                <a :href="imgUrl+item.attachment.path" download="" class="red1 undline" v-if="item.attachment && item.attachment.path">模板下载</a>
              </el-col>
            </el-row>
            
          </dd>
        </dl>
        <div class="flex-rict">
          <span class="flex-ct bg1 btn1" @click="pupSubmit()">确定</span>
        </div>
      </div>
    </div>

  </div>
</template>
<script>

import {ajax,showToast,ajaxAdd,ajaxBackAdd} from '@/utils/js.js'
import { getDeclarationIssuedCompanyDetail,uploadFile,getUserApplyMaterialList,saveDeclarationIssuedCompanyDetail} from '@/services/api.js'
export default {
  components: {},
  data() {
    return {
      userInfo : this.$store.state.userInfo,
      pup:false,
      imgUrl:this.$store.state.imgUrl,
      sex:[
        {name:'男',value:0},
        {name:'女',value:1}
      ],

      edit:false, //编辑企业员工资料
      ygIndex:9999,//当前编辑的企业员工资料
      ygFileIndex:9999, //企业员工上传资料-当前数据
      // 企业---添加员工资料
      "addYgFile": {
        new:true,
        show:true,
        "applyId": "",
        "applyMaterial": {
          "attachment": {
            "belongId": "",
            "belongType": "",
            "createTime": "",
            "createUser": "",
            "id": "",
            "name": "",
            "path": "",
            "type": "",
            "updateTime": "",
            "updateUser": ""
          },
          "attachmentId": "",
          "createTime": "",
          "createUser": "",
          "declarationId": "",
          "id": "",
          "name": "",
          "requirement": "",
          "type": "",
          "typeTxt": "",
          "updateUser": "",
          "userUploadAttachment": {
            "belongId": "",
            "belongType": "",
            "createTime": "",
            "createUser": "",
            "id": "",
            "name": "",
            "path": "",
            "type": "",
            "updateTime": "",
            "updateUser": ""
          }
        },
        "applyStuffMaterialList": [
          {
            "applyMaterial": {
              "attachment": {
                "belongId": "",
                "belongType": "",
                "createTime": "",
                "createUser": "",
                "id": "",
                "name": "",
                "path": "",
                "type": "",
                "updateTime": "",
                "updateUser": ""
              },
              "attachmentId": "",
              "createTime": "",
              "createUser": "",
              "declarationId": "",
              "id": "",
              "name": "",
              "requirement": "",
              "type": "",
              "typeTxt": "",
              "updateUser": "",
              "userUploadAttachment": {
                "belongId": "",
                "belongType": "",
                "createTime": "",
                "createUser": "",
                "id": "",
                "name": "",
                "path": "",
                "type": "",
                "updateTime": "",
                "updateUser": ""
              }
            },
            "attachment": {
              "belongId": "",
              "belongType": "",
              "createTime": "",
              "createUser": "",
              "id": "",
              "name": "",
              "path": "",
              "type": "",
              "updateTime": "",
              "updateUser": ""
            },
            "createTime": "",
            "createUser": "",
            "id": "",
            "materialId": "",
            "stuffId": "",
            "updateTime": "",
            "updateUser": ""
          }
        ],
        "attachment": {
          "belongId": "",
          "belongType": "",
          "createTime": "",
          "createUser": "",
          "id": "",
          "name": "",
          "path": "",
          "type": "",
          "updateTime": "",
          "updateUser": ""
        },
        "auditOpinion": "",
        "belongEnterprise": "",
        "cashIn": "",
        "cashInTxt": "",
        "cashinOpinion": "",
        "createTime": "",
        "createUser": "",
        "declarationIssued": {},
        "id": "",
        "materialCount": 0,
        "name": "",
        "sex": 0,
        "sexTxt": "",
        "stuffMaterialId": "",
        "subjectType": "",
        "subjectTypeTxt": "",
        "updateTime": "",
        "updateUser": ""
      },

      addYgFiles:{},
      
      
      formData:{},
      banner: [],
      con:{title:''},
      con1:{},
      con2:{},
      con0:{},
      pagination:{
        current:1,
        size:10,
        total:132,
      },
      qyFile:'',  //企业上传材料
      type:this.$store.state.userInfo.type,  // 1-企业，
      fileUploadIndex:'', //企业上传材料的位置
      tabStatus:'',
    };
  },
  mounted() {
    let data = this.$route.query;
    this.content(data.id);
    this.tabStatus = data.type
  },
  computed: {},
  watch: {
    "$i18n.locale"() {
      this.content();
    },
  },
  methods: {
    upTip(){
      const loading = this.$loading({
        lock: true,
        text: this.$t('common.status.upImgTip'),
        spinner: 'el-icon-loading',
        background: 'rgba(0, 0, 0, 0.7)'
      });
      return loading
    },
    tipBoxs(){
      // rzstatus 1未认证，2认证待审核，3已认证,4认证不通过"
      var userInfo = this.$store.state.userInfo;
      console.log(userInfo)
      // declareStatus    -1暂存，0已提交，1,审核通过，2审核打回  (-1和2的情况可更改)
      // applyStatus  0 -未开始， 1-进行中，2 已截止
      if(this.con.declareStatus == 0) return showToast(this,'您已提交申报记录 不能重复提交申请哦~')
      if(this.con.declareStatus == 1) return showToast(this,'您已有申报记录 不能重复提交申请哦~')
      if(this.con.applyStatus == 0) return showToast(this,'还未开始申报，敬请期待！')
      if(this.con.applyStatus == 2) return showToast(this,'申报已截止！')
      if(userInfo.type != 1) return showToast(this,'只有企业身份才可申报！')
      if(userInfo.type == 1 && this.con.rzstatus != 3) return showToast(this,'只有认证通过的企业才可以申报该项目！')
    },
    delGr(index){
      this.con.companyApplyStuffList[this.ygIndex].applyMaterialList[index].userUploadAttachment = null
    },
    delQY(index){
      this.con.applyMaterialList[index].userUploadAttachment = null
    },
    formSubmit(e){
        let data = this.con
        console.log(data)
        if(!data.applyName || data.applyName.length == 0 ) return showToast(this,'请填入申报企业名称')
        if(!data.applyNum || data.applyNum.length == 0 ) return showToast(this,'请填入申报人数')
        if(!data.companyApplyStuffList || data.companyApplyStuffList.length == 0 ) return showToast(this,'请添加人员信息')
        for(let i = 0; i < data.companyApplyStuffList.length; i++){
          let item = data.companyApplyStuffList[i]
          if(item.name.length == 0) return showToast(this,'请填入申报人员姓名')
          for(let j = 0; j < item.applyMaterialList.length; j++){
            let n = item.applyMaterialList[j]
            if(!n.userUploadAttachment) return showToast(this,'请上传'+n.name)
          }
        }
        data.declareStatus = e;
        // delete data.policyArticles;
        ajax(this,saveDeclarationIssuedCompanyDetail,data,res=>{
          console.log('提交',res)
          showToast(this,res.msg,1)
        },err=>{
          if(err.code == 600){
            this.con.companyApplyStuffList = this.con0.companyApplyStuffList
            console.log(this.con0)
          }
        })
      // }
    },
    /************** 企业  ****************/ 
    pups(index){
      this.pup = !this.pup
      if(index != 999){
        this.ygIndex = index;
        console.log()
      }
    },
    // 企业---添加员工资料
    addYg(){
      
      let addYgFiles = JSON.parse(JSON.stringify(this.addYgFile))
      this.con.companyApplyStuffList = this.con.companyApplyStuffList.concat(addYgFiles)
      this.con1 = JSON.parse(JSON.stringify(this.con))
      this.con2 = JSON.parse(JSON.stringify(this.con1))
    },
    // 企业员工上传资料 -- 确认提交
    pupSubmit(){
      let ygIndex = this.ygIndex;
      console.log('123',this.con.companyApplyStuffList[ygIndex])
      
      this.pup = false;
    },
    //企业员工上传资料-当前数据
    getYgFileIndex(index){
      console.log('getYgFileIndex',index)
      this.ygFileIndex = index
    },
    //员工文件上传
    ygUpload(file){
      let loading = this.upTip()
      document.getElementsByTagName('body')[0].className = 'password'; //设置为新的
      let data = new FormData();
			data.append('file', file);
			ajax(this, uploadFile, data, res => {
        showToast(this,res.msg,1)
        document.getElementsByTagName('body')[0].className = ''; //设置为新的
        loading.close();
        let ygIndex = this.ygIndex;
        let ygFileIndex = this.ygFileIndex
				this.con.companyApplyStuffList[ygIndex].applyMaterialList[ygFileIndex].userUploadAttachment = res.data
			});
    },
    //企业材料上传-当前数据
    fileUploadBox(index){
      this.fileUploadIndex = index
    },
    // 企业材料上传
		fileUpload(file) {
      let loading = this.upTip()
			let data = new FormData();
      data.append('file', file);
      document.getElementsByTagName('body')[0].className = 'password'; //设置为新的
			ajax(this, uploadFile, data, res => {
        document.getElementsByTagName('body')[0].className = ''; //设置为新的
        loading.close();
        showToast(this,res.msg,1)
				this.con.applyMaterialList[this.fileUploadIndex].userUploadAttachment = res.data
			});
    },
    // 企业员工信息编辑
    change(n){
      // type 0-编辑，1-删除，2-保存，3取消
      let con = {...this.con}
      let con1 = this.con1
      this.ygIndex = n.index
      if(n.type == 0){
        // 编辑
        console.log('编辑')
        con.companyApplyStuffList[n.index].show = true
      }else if(n.type == 1){
        // 删除
        console.log('删除')
        let companyApplyStuffList = []
        for(let i=0; i<con.companyApplyStuffList.length;i++){
          console.log(n.index,i)
          if(i != n.index){
            companyApplyStuffList = companyApplyStuffList.concat(con.companyApplyStuffList[i])
          }
        }
        console.log(companyApplyStuffList)
        con.companyApplyStuffList = companyApplyStuffList
      }else if(n.type == 2){
        // 保存
        console.log('保存')
        con.companyApplyStuffList[n.index].show = false
      }else if(n.type == 3){
        // 取消
        console.log('取消')
        con1.companyApplyStuffList[n.index].show = false
        con.companyApplyStuffList[n.index] = con1.companyApplyStuffList[n.index]
      }
      this.con = con
      console.log(this.con.companyApplyStuffList)
    },

     content(id) {
      ajax(this,getDeclarationIssuedCompanyDetail,{declarationIssuedId:id},res=>{
        console.log(res);
        if(!res.data.companyApplyStuffList){
          res.data.companyApplyStuffList =[]
        }
        this.con=res.data;
        this.con0 = JSON.parse(JSON.stringify(this.con))  //最原始的数据
        this.con1 = JSON.parse(JSON.stringify(this.con))
        this.con2 = JSON.parse(JSON.stringify(this.con1))
        
      },err=>{
        showToast(this,err.msg)
      })
      ajax(this,getUserApplyMaterialList,{declarationIssuedId:id},res=>{
        console.log(res);
        this.addYgFile.applyMaterialList=res.data;
        this.addYgFile.materialCount = res.data.length
        
        
      },err=>{
        showToast(this,err.msg)
      })
      
    },
    //首页跳转
    indexLink(data) {
      if (data.outLink && data.outLink == 1) {
        window.open(data.linkUrl, "-blank");
      } else {
        window.location.href = data.linkUrl;
      }
    },
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      this.search.pageNo=val;
      this.getContentList();
    },

    
  },
};
</script>
<style lang="scss">

.c_policy_declare_detail {
  .tipBoxs{position: absolute;width: 100%;height: 100%;z-index: 999;left:0;top:0;cursor: pointer;}
  #zcFile_pup{
    position: fixed;width: 100%;height: 100%;left:0;top:0;z-index: 1000;background-color: rgba(0,0,0,0.5);
    .pup-box{background-color: #fff;padding:0 10px 30px; width:800px;
      h3{border-bottom: 1px solid #ededed;padding:10px 0;}
      .p1{color: #666;padding:15px 0;}

    }
    .btn1{
      width:80px;
      height:32px;
      background:rgba(15,84,188,1);
      opacity:0.94;
      border-radius:2px;
      margin-top:10px;
      cursor: pointer;
    }
  }
  .zc-dl{
        border:1px solid rgba(239,239,239,1);
        dt{
          font-size:14px;
          font-family:Microsoft YaHei;
          font-weight:bold;
          line-height:19px;
          color:rgba(51,51,51,1);
          opacity:1;
          padding: 14px 22px;
          background: #f6f6f6;
        } 
        dd{
          display: flex;
          flex-direction: row;
          flex-wrap: nowrap;
          justify-content: space-between;
          font-size:14px;
          font-family:Microsoft YaHei;
          font-weight:400;
          line-height:19px;
          padding:13px 22px;
          color:rgba(51,51,51,1);
          opacity:1;
          border-bottom: 1px solid rgba(239,239,239,1);
          a{
            font-family:Microsoft YaHei;
            font-weight:400;
            line-height:19px;
            color:rgba(15,84,188,1);
            text-decoration: underline;
          }
        }
        dd:last-child{
          border:none;
        }
      }

  .el-col{min-height:2px;}
  .box-center {
    margin: 30px auto 50px auto;
    text-align: center;
  }
  .record{
    padding: 8px 0;
    font-size:12px;
    font-family:Microsoft YaHei;
    font-weight:400;
    line-height:16px;
    color:rgba(153,153,153,1);
    opacity:1;
  }
  .banner {
    img {
      max-width: 100%;
      min-width: 1200px;
      display: block;
    }
    .el-carousel--button {
      width: 12px;
      height: 12px;
      background: rgba(255, 255, 255, 1);
      border-radius: 50%;
      opacity: 1;
    }
    .el-carousel--indicator.is-active button {
      background-color: #0f54bc;
    }
  }
  .noRecord {
    text-align: center;
    padding: 144px 0;
    border-top: 1px solid rgba(204, 204, 204, 1);
    p:first-child {
      text-align: center;
    }
    p:nth-child(2) {
      margin-top: 25px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: rgba(153, 153, 153, 1);
      opacity: 1;
    }
    p:last-child {
      margin-top: 36px;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: rgba(119, 119, 119, 1);
      opacity: 1;
      a {
        margin-left: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: rgba(15, 84, 188, 1);
        opacity: 1;
        text-decoration: underline;
      }
    }
  }
  .white {
    background: #fff;
  }
  .box {
    box-sizing: border-box;
    width: 1200px;
    margin: 0 auto;
    .breadcrumb-nav {
      font-size: 13px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: rgba(153, 153, 153, 1);
      opacity: 1;
      margin: 8px 0;
    }
    .box-content {
      .btn{
        width:100px;
        height:36px;
        opacity:1;
        border-radius:2px;
        border:1px solid rgba(15,84,188,1);
        margin:20px 10px;
        cursor: pointer;
      }
      margin-top: 6px;
      padding:18px 120px;
      h2:first-child{
        margin-top: 34px;
        text-align: center;
        font-size:22px;
        font-family:Microsoft YaHei;
        font-weight:bold;
        line-height:29px;
        color:rgba(51,51,51,1);
        opacity:1;
        .el-tag{
          margin-left: 10px;
          font-size:12px;
          font-family:Microsoft YaHei;
          font-weight:400;
          line-height:24px;
          color:rgba(15,84,188,1);
          opacity:1;
          background:rgba(15,84,188,0.1);
        }
      }
      p.p1{
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        span{
          margin:16px 15px;

        }
      }
       p.p2{
        margin: 10px 0;
        font-size:14px;
        font-family:Microsoft YaHei;
        font-weight:400;
        line-height:24px;
        color:rgba(51,51,51,1);
        opacity:1;
        a{
          font-size:14px;
          font-family:Microsoft YaHei;
          font-weight:400;
          line-height:24px;
          color:rgba(15,84,188,1);
          opacity:1;
        }
        span{
          margin-right:34px;
        }
      }
      p.p3{
        margin: 6px 0;
        font-size:14px;
        font-family:Microsoft YaHei;
        font-weight:400;
        line-height:24px;
        color:rgba(51,51,51,1);
        opacity:1;
        span{
          margin-right:20px;
        }
      }
      p.p4{
        margin: 12px 0;
        font-size:14px;
        font-family:Microsoft YaHei;
        font-weight:400;
        line-height:24px;
        color:rgba(51,51,51,1);
        opacity:1;
        span:first-child{
          margin-right:18px;
        }
        span:last-child{
          margin-left:12px;
          color:rgba(153,153,153,1);
        }
      }
      h3{
        font-size:14px;
        font-family:Microsoft YaHei;
        font-weight:400;
        line-height:24px;
        color:rgba(51,51,51,1);
        opacity:1;
        margin-bottom: 24px;
      }
      p.p5{
        font-size:14px;
        font-family:Microsoft YaHei;
        font-weight:400;
        line-height:24px;
        color:rgba(51,51,51,1);
        opacity:1;
        padding-bottom: 30px;
      }
      h2:nth-of-type(2){
        font-size:20px;
        font-family:Microsoft YaHei;
        font-weight:bold;
        line-height:24px;
        color:rgba(51,51,51,1);
        opacity:1;
        border-left:3px solid rgba(15,84,188,1);
        padding-left: 5px;
        margin-top:24px;
        margin-bottom: 19px;
      }
     
      
      p.tips{
        font-size:12px;
        font-family:Microsoft YaHei;
        font-weight:400;
        line-height:16px;
        padding:4px 22px;
        color:rgba(153,153,153,0.99);
      }
      .mt30{
        margin-top:30px;
      }
    }
  }
}
</style>